package com.zzzs.pojo;

import java.util.Objects;

/**
 * @author zhu_shuai
 * @since 2021/6/19
 */
public class User {
    private String name = "lisi";

    private String getName() {
        return "wo shi zhangsan";
        // return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return Objects.equals(name, user.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
